package com.example.pet.hystrix;

import com.example.pet.service.UserService;
import com.hj.pet.model.Constant;
import com.hj.pet.model.ReturnT;
import org.springframework.stereotype.Component;

@Component
public class UserServiceHystrix implements UserService {
    @Override
    public ReturnT<?> login(String account, String pwd) {
    return new ReturnT<>(Constant.FAIL_CODE,"触发熔断");
    }

    @Override
    public boolean registry(String userAccount,String userPwd) {
        return false;
    }
}
